from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand

from flask import session
from info import create_app,db

from flask import session,current_app
import logging

app = create_app("development")
manager = Manager(app)
Migrate(app,db)

manager.add_command('db',MigrateCommand)


# @app.route('/')
# def hello_world():
#     session["name"]="laowang"
#     current_app.logger.debug('Flask 记录debug log')
#     return "Hello World"
#


if __name__ == '__main__':
    manager.run()